package com.navinfo.platform.trip.common.arithmetic.enums;

import com.google.common.collect.Range;

/**
 * 转速区间对象
 */
public enum RangeRpmEnum {
    RANGE_500(Range.closedOpen(0,500)),
    RANGE_600(Range.closedOpen(500,600)),
    RANGE_700(Range.closedOpen(600,700)),
    RANGE_800(Range.closedOpen(700,800)),
    RANGE_900(Range.closedOpen(800,900)),
    RANGE_1000(Range.closedOpen(900,1000)),
    RANGE_1100(Range.closedOpen(1000,1100)),
    RANGE_1200(Range.closedOpen(1100,1200)),
    RANGE_1300(Range.closedOpen(1200,1300)),
    RANGE_1400(Range.closedOpen(1300,1400)),
    RANGE_1500(Range.closedOpen(1400,1500)),
    RANGE_1600(Range.closedOpen(1500,1600)),
    RANGE_1700(Range.closedOpen(1600,1700)),
    RANGE_1800(Range.closedOpen(1700,1800)),
    RANGE_1900(Range.closedOpen(1800,1900)),
    RANGE_2000(Range.closedOpen(1900,2000)),
    RANGE_2100(Range.closedOpen(2000,2100)),
    RANGE_2200(Range.closedOpen(2100,2200)),
    RANGE_2300(Range.closedOpen(2200,2300)),
    RANGE_2400(Range.closedOpen(2300,2400)),
    RANGE_2500(Range.closedOpen(2400,2500)),
    RANGE_2600(Range.closedOpen(2500,2600)),
    RANGE_2700(Range.closedOpen(2600,2700)),
    RANGE_2800(Range.closedOpen(2700,2800)),
    RANGE_2900(Range.closedOpen(2800,2900)),
    RANGE_3000(Range.closedOpen(2900,3000)),
    RANGE_OVER_3000(Range.atLeast(3000)),
    RANGE_OVER_VALID(Range.closed(0,4000));


    RangeRpmEnum(Range<Integer> range) {
        this.range = range;
    }

    /**
     * 转速区间
     */
    private Range<Integer> range;


    public Range<Integer> getRange() {
        return range;
    }

}